package com.ambow.store.controller;

import com.ambow.store.controller.util.Result;
import com.ambow.store.entity.DictDistrict;
import com.ambow.store.service.DictDistrictService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("district")
public class DictDistrictController extends BaseController {
    @Autowired
    private DictDistrictService districtService;

    @GetMapping
    public Result getByPrint(DictDistrict dictDistrict){
        List<DictDistrict> byPrint = districtService.getByPrint(dictDistrict);
        return new Result(OK,byPrint);
    }

}
